﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;

namespace ClassLibrary
{
    [ServiceContract(CallbackContract = typeof(IClientContract), SessionMode = SessionMode.Allowed, ProtectionLevel = System.Net.Security.ProtectionLevel.None)]
    public interface IServerContract
    {
        [OperationContract(IsOneWay = false)]
        List<Match> GetMatchs();

        //void = is one way true
        [OperationContract(IsOneWay = true)]
        void VoteForPlayer(Player player, Match match);

    }
}
